// JavaScript Document
    $(function(){
        Victor("container", "output");   //登录背景函数
        $("#entry_name").focus();
        $(document).keydown(function(event){
            if(event.keyCode==13){
                $("#btn_login").click();
            }
        });
       

	$("#btn_add").on("click",function(){
        //window.location.replace("show_Add")
        var time_id=$("#time_id").val()
        formpost("http://127.0.0.1:8080/show_Add",{'time_id' :time_id});
	})
        function formpost(url, postData) {
            var tempform = document.createElement("form");
            tempform.action = url;
            tempform.target = "_blank";
            tempform.method = "post";
            tempform.style.display = "none";
            for (var x in postData) {
                var opt = document.createElement("textarea");
                opt.name = x;
                opt.value = postData[x];
                tempform.appendChild(opt);
            }
            document.body.appendChild(tempform);
            tempform.submit();
        }
    });